<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            border: 1px solid #000;
            margin: 100px auto;
            /* 将溢出的部分进行隐藏 */
            overflow: hidden;
        }

        .box::after {
            content: '黑马前端55期';
            display: block;
            width: 100%;
            height: 100%;
            background-color: hotpink;
            transform-origin: left bottom;
            transform: rotate(180deg);
            /* 过渡属性 */
            transition: all 2s;
        }
        .box:hover::after {
            transform: rotate(0deg);
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>